package util

import (
	"crypto/md5"
	"encoding/hex"
)

func Md5(str string, isWithSignKey bool) string {
	if isWithSignKey {
		str = str + "l>AW?rePOyv/I0(i)4+-wp9BsQR}526c"
	}
	hash := md5.Sum([]byte(str))
	encryptedData := hex.EncodeToString(hash[:])
	return encryptedData
}
